//
//  AXFOrderManager.m
//  AIXF
//
//  Created by zhanghui on 2017/7/9.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFOrderManager.h"

@implementation AXFOrderManager


#pragma mark - 我的订单网络接口
- (void)requesMyOrderWithSuperMarketWith:(void (^)(id))sussBLock andFailBlock:(void (^)(NSError *))faliBlock{
    
    
    self.url = @"MyOrders.json.php";
    self.call = @"13";
    
    [super requestWithSussBlock:^(id response) {
        
        if (sussBLock) sussBLock(response);
        
    } andFailBlock:^(NSError *error) {
        
        if (faliBlock) faliBlock(error);
        
    }];
    
    
}

#pragma mark - 我的收获地址网络接口
- (void)requestMyAdressWithSuperMarketWith:(void (^)(id))sussBLock andFailBlock:(void (^)(NSError *))faliBlock{
    
    
    self.url = @"MyAdress.json.php";
    self.call = @"12";
    
    [super requestWithSussBlock:^(id response) {
        
        if (sussBLock) sussBLock(response);
        
    } andFailBlock:^(NSError *error) {
        
        if (faliBlock) faliBlock(error);
        
    }];
    
}

@end
